package com.company;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        // write your code here
        float f = 1.0f;
        Class<Test> s = Test.class;
        MyTest t = new MyTest(1);
        Test.count = 1;
        t.printI();
        t.printJ();
        System.out.println(t.i);
//        int[] array = {1, 2, 3, 4, 4, 4};
        int[] array = new int[10];
        Arrays.fill(array, 1);
        int[] copyArray = Arrays.copyOfRange(array, 1, 6);
        System.out.println(copyArray[0]);
        System.out.println(copyArray[1]);
        System.out.println(copyArray[2]);
        System.out.println(copyArray[3]);
        System.out.println(copyArray[4]);
        System.out.println(Arrays.binarySearch(copyArray, 4));
        byte i = -0b1010;
        System.out.println(Integer.toBinaryString(i >> 1));
        for (int a : array) {
            log(a);
        }
        Test tt = null;
        log(tt);
    }

    private static <T> void log(T t) {
        System.out.println(t);
    }
}
